using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;

public class UIBase : MonoBehaviour
{
    [SerializeField] private Button closeBtn;

    protected virtual void Start()
    {
        closeBtn?.onClick.AddListener(HideMe);
    }

    public virtual void ShowMe()
    {
        GameManager.Instance.PauseGame(true);
        gameObject.SetActive(true);
    }

    public virtual void HideMe() 
    {
        gameObject.SetActive(false);
        GameManager.Instance.PauseGame(false);
        AudioManager.Instance.PlaySound((int)E_SoundType.Click);
    }


    public virtual void UpdateItemDetail(ItemData _itemData)
    {

    }
}
